import { createRouter, createWebHistory } from 'vue-router'
import clipVue from '../components/clip/clip.vue'
import HelloWorldVue from '../components/HelloWorld.vue'
import helloworld2Vue from '../components/helloworld2.vue'
import LoginVue from '../pages/login/index.vue'

const routes = [
    {
        path: '/',
        redirect: '/login'
    },
    {
        path: '/login',
        component: LoginVue
    },
    {
        path: '/',
        redirect: '/home'
    },
    {
        path: '/home',
        component: HelloWorldVue
    },
    {
        path: '/vue2',
        component: helloworld2Vue
    },
    {
        path: '/clip',
        component: clipVue
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router
